home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Gold Medal Software 5
/
Gold Medal Software - Volume 5 (Gold Medal) (1995).iso
/
database
/
cardx135.arj
/
CINSTALL.BAT
< prev
next >
Wrap
DOS Batch File
|
1993-11-04
|
2KB
|
68 lines
@echo off
cls
@echo -------------- Install Cardx --------------
@echo !!!!!! Back-up your Databases, *.CDX !!!!!!
@echo Change to the Floppy Drive this disk is in.
@echo On the comand line type:
@echo CINSTALL X:Source Drive X:Destination Drive
@echo -------------------------------------------
@echo CINSTALL %1 %2
@echo -------------------------------------------
@echo Type Ctrl/Break to Exit ...
pause
IF %1test == %2test goto same
IF %1test == test goto same
IF %2test == test goto same
@echo on
%2
cd\
@echo off
if exist %2\cardx\cardx.exe goto nofile
@echo -----------------------------
@echo CARDX directory doesn't exist
@echo Creating directory
@echo -----------------------------
@echo on
md cardx
@echo off
goto unpack
:nofile
@echo off
@echo ---------------------------
@echo CARDX directory exists
@echo Changing to CARDX directory
@echo ---------------------------
:unpack
@echo on
cd cardx
@echo off
@echo --------------------------------
@echo Unpacking files to the directory
@echo --------------------------------
%1\cardx135
@echo -----------------------------------
@echo Copying Start-up batch files to %2\
@echo -----------------------------------
@echo on
copy %1\cardx.bat
copy %1\cardxm.bat
copy cardx.bat %2\*.*
copy cardxm.bat %2\*.*
copy %1\cardx.add
@echo off
cardx *.*
cd\
@echo off
goto exit
:same
@echo off
@echo ---------------------------
@echo Nothing on command line or
@echo (D:)rives must be different
@echo Floppy in A: drive and
@echo program to reside on C:
@echo ---------------------------
@echo CINSTALL A: C:
@echo ---------------------------
:exit